

/**
 * @desc 用户表
 */
 import { Column, DataType, ForeignKey, Model, PrimaryKey, Table } from 'sequelize-typescript';
 import { User } from './user';
 @Table({
   modelName: 'local_account',
 })
 
 
 export class LocalAccount extends Model<LocalAccount> {
 
   @PrimaryKey
   @Column({
     type: DataType.STRING,
     comment: '用户名称',
   })
   username: string;
 
   @Column({
     type: DataType.STRING,
     comment: '密码',
   })
   password: string;
 
   @ForeignKey(()=>User)
   @Column({
     type: DataType.INTEGER(),
     comment: '用户ID',
   })
   user_id:number;
 }
 
 
 export default () => LocalAccount;
 